<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>库存管理系统</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Arial', sans-serif;
        }
        
        body {
            background-color: #f5f7fa;
            color: #333;
        }
        
        .container {
            display: flex;
            min-height: 100vh;
        }
        
        .sidebar {
            width: 250px;
            background-color: #2c3e50;
            color: #ecf0f1;
            padding: 20px 0;
        }
        
        .logo {
            text-align: center;
            padding: 15px 0 30px;
            font-size: 22px;
            font-weight: bold;
            border-bottom: 1px solid #34495e;
        }
        
        .menu {
            margin-top: 20px;
        }
        
        .menu-title {
            padding: 15px 20px;
            font-weight: bold;
            background-color: #34495e;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .menu-title:hover {
            background-color: #3d566e;
        }
        
        .menu-items {
            background-color: #1a252f;
            display: none;
        }
        
        .menu-item {
            padding: 12px 30px;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .menu-item:hover {
            background-color: #34495e;
            padding-left: 35px;
        }
        
        .menu-item.active {
            background-color: #3498db;
        }
        
        .main-content {
            flex: 1;
            padding: 20px;
        }
        
        .header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
            padding-bottom: 15px;
            border-bottom: 1px solid #ddd;
        }
        
        .page-title {
            font-size: 24px;
            font-weight: bold;
        }
        
        .user-info {
            display: flex;
            align-items: center;
        }
        
        .user-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background-color: #3498db;
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-left: 15px;
        }
        
        .card-container {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }
        
        .card {
            background-color: white;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            padding: 20px;
            transition: transform 0.3s;
        }
        
        .card:hover {
            transform: translateY(-5px);
        }
        
        .card-title {
            font-size: 18px;
            font-weight: bold;
            margin-bottom: 15px;
            color: #2c3e50;
        }
        
        .card-content {
            color: #7f8c8d;
            line-height: 1.6;
        }
        
        .data-section {
            background-color: white;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            padding: 20px;
            margin-top: 20px;
        }
        
        .section-title {
            font-size: 20px;
            font-weight: bold;
            margin-bottom: 20px;
            color: #2c3e50;
        }
        
        table {
            width: 100%;
            border-collapse: collapse;
        }
        
        th, td {
            padding: 12px 15px;
            text-align: left;
            border-bottom: 1px solid #ddd;
        }
        
        th {
            background-color: #f8f9fa;
            font-weight: bold;
        }
        
        tr:hover {
            background-color: #f5f5f5;
        }
        
        .btn {
            padding: 8px 15px;
            border-radius: 4px;
            border: none;
            cursor: pointer;
            font-weight: bold;
            transition: all 0.3s;
        }
        
        .btn-primary {
            background-color: #3498db;
            color: white;
        }
        
        .btn-primary:hover {
            background-color: #2980b9;
        }
        
        .btn-danger {
            background-color: #e74c3c;
            color: white;
        }
        
        .btn-danger:hover {
            background-color: #c0392b;
        }
    </style>
</head>
<body>
    <div class="container">
        <!-- 侧边栏导航 -->
        <div class="sidebar">
            <div class="logo">库存管理系统</div>
            <div class="menu">
                <div class="menu-title" onclick="toggleMenu('inventory')">
                    <span>库存管理</span>
                    <span>▼</span>
                </div>
                <div class="menu-items" id="inventory-menu">
                    <div class="menu-item active" onclick="loadContent('tracking')">库存跟踪</div>
                    <div class="menu-item" onclick="loadContent('loss')">损耗管理</div>
                    <div class="menu-item" onclick="loadContent('check')">盘点管理</div>
                </div>
                
                <!-- 可以添加更多菜单项 -->
                <div class="menu-title" onclick="toggleMenu('reports')">
                    <span>报表统计</span>
                    <span>▼</span>
                </div>
                <div class="menu-items" id="reports-menu">
                    <div class="menu-item" onclick="loadContent('reports')">库存报表</div>
                    <div class="menu-item" onclick="loadContent('analysis')">损耗分析</div>
                </div>
            </div>
        </div>
        
        <!-- 主内容区 -->
        <div class="main-content">
            <div class="header">
                <div class="page-title" id="page-title">库存跟踪</div>
                <div class="user-info">
                    <span>管理员</span>
                    <div class="user-avatar">A</div>
                </div>
            </div>
            
            <!-- 库存跟踪内容 -->
            <div id="tracking-content" class="content-section">
                <div class="card-container">
                    <div class="card">
                        <div class="card-title">实时库存监控</div>
                        <div class="card-content">
                            系统提供实时库存监控功能，可以随时查看各仓库的商品库存情况，确保库存数据准确无误。
                        </div>
                    </div>
                    <div class="card">
                        <div class="card-title">多仓库管理</div>
                        <div class="card-content">
                            支持多个仓库的库存管理，可以轻松查看和调配不同仓库之间的商品库存。
                        </div>
                    </div>
                    <div class="card">
                        <div class="card-title">库存预警</div>
                        <div class="card-content">
                            当库存量低于预设阈值时，系统会自动发出预警通知，避免缺货情况发生。
                        </div>
                    </div>
                </div>
                
                <div class="data-section">
                    <div class="section-title">当前库存状态</div>
                    <table>
                        <thead>
                            <tr>
                                <th>商品ID</th>
                                <th>商品名称</th>
                                <th>仓库</th>
                                <th>当前库存</th>
                                <th>安全库存</th>
                                <th>状态</th>
                                <th>操作</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr>
                                <td>10001</td>
                                <td>商品A</td>
                                <td>北京仓库</td>
                                <td>150</td>
                                <td>50</td>
                                <td>正常</td>
                                <td><button class="btn btn-primary">详情</button></td>
                            </tr>
                            <tr>
                                <td>10002</td>
                                <td>商品B</td>
                                <td>上海仓库</td>
                                <td>45</td>
                                <td>50</td>
                                <td>预警</td>
                                <td><button class="btn btn-primary">详情</button></td>
                            </tr>
                            <tr>
                                <td>10003</td>
                                <td>商品C</td>
                                <td>广州仓库</td>
                                <td>200</td>
                                <td>100</td>
                                <td>正常</td>
                                <td><button class="btn btn-primary">详情 
